***public vs private cases over time

use HKCFA_u.dta, clear 

label define public 0 "Private Law" 1 "Public Law"
label values gov public

sort gov year

egen c = count(caseno), by(gov year)

bys gov year: gen tem = _n
bys gov: gen cum = sum(c) if tem == 1


separate cum, by(gov) veryshortlabel

twoway connected cum? year, lpattern(solid solid) ylabel(,nogrid) title("",  position(6)) ytitle(Case Count) xtitle("") sort graphregion(color(white)) lcolor(navy maroon) mcolor(navy maroon)  xscale(range(1995 2020))

graph export results/case_publicprivate.pdf, replace

